Skip to content

refactor: Localize single-consumer types (issue #643 phase 3) - #806

Merged
jirispilka merged 1 commit into
masterfrom
claude/issue-643-phase-3-1iWa5
May 11, 2026
Merged

refactor: Localize single-consumer types (issue #643 phase 3)#806
jirispilka merged 1 commit into
masterfrom
claude/issue-643-phase-3-1iWa5

Conversation

@jirispilka

Copy link
Copy Markdown
Collaborator

Phase 3 of #643 — localize single-consumer types from src/types.ts.

Move applied

Type Moved to Notes
ActorInputSchemaProperties src/tools/utils.ts (private) Only consumer; not exported via any index*.ts

Stale spec items (already in place on master)

The following Phase 3 items were already done in earlier work — no change needed:

  • ActorChargeEvent — already in src/utils/pricing_info.ts
  • ActorPricingModel — already private in src/utils/actor_search.ts
  • TieredPricing, PricingInfo, PricePerEventActorPricingInfo — already in src/utils/pricing_info.ts (PricePerEventActorPricingInfo is already private)
  • src/utils/actor_card.ts already imports PricingInfo from ./pricing_info.js

Verification

  • npm run type-check passes
  • npm run lint passes
  • npm run test:unit passes (613 passed, 4 skipped)

Related: #643


Generated by Claude Code

Move ActorInputSchemaProperties from src/types.ts to src/tools/utils.ts
as a private type alias (its only consumer).

Note: spec listed several other types (ActorChargeEvent, ActorPricingModel,
TieredPricing, PricingInfo, PricePerEventActorPricingInfo) but they have
already been localized to their respective modules. The actor_card.ts
import update is also already in place. Only ActorInputSchemaProperties
remained in src/types.ts.
@github-actions github-actions Bot added the t-ai Issues owned by the AI team. label May 7, 2026
@jirispilka
jirispilka marked this pull request as ready for review May 7, 2026 14:09
@jirispilka
jirispilka requested a review from MQ37 May 7, 2026 14:10
@jirispilka
jirispilka merged commit 211c692 into master May 11, 2026
9 checks passed
@jirispilka
jirispilka deleted the claude/issue-643-phase-3-1iWa5 branch May 11, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-ai Issues owned by the AI team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants